const directionsMeta = [
    'top', 'right', 'bottom', 'left', 'topRight', 'bottomRight', 'bottomLeft', 'topLeft'
];
function setDirection(val) {
    let directions = {};
    directionsMeta.forEach(key => {
        directions[key] = key in val ? val[key] : false;
    })
    return directions;
}
export default setDirection;